package com.woniu.service;

import com.woniu.dto.DynamicCommentDTO;
import com.woniu.dto.DynamicDTO;
import com.woniu.pojo.Dynamic;
import com.woniu.pojo.DynamicTags;
import com.woniu.pojo.Friends;

import java.util.List;

public interface DynamicService {






    void release(Dynamic dynamic, Long uid, String imgs);
  //展示所有动态
    List<DynamicDTO> selectDTOByPage(Integer currentPage, Integer pageSize);


    DynamicDTO selectDynamicById(Long id);

    List<String> selectPersonsByDynamicId(Long id);

    Integer selectPersonNum(Long id);

    List<DynamicCommentDTO> selectComments(Long id);

    void addTag(Long dynamicId, Long userId);

    List<DynamicTags> selectTags(Long id);

    void reduceTag(Long dynamicId, Long userId);

    void addComment(String comment, Long dynamicId, Long userId);

    void deleteComment( Long id,Long dynamic);

    void addFriend(Long friendId, Long userId);

  void reduceFriend(Long friendId, Long userId);

  Friends selectFriend(Long friendId, Long userId);

  Long selectUserId(Long id);

  List<Long> selectFriendsId(Long userId);

  List<DynamicDTO> selectFriendBynamic(List<Long> friendsId);

  Dynamic selectDynamic(Long dynamicId);

  void updateDynamic(Dynamic dynamic,String imgs);

  void deleteDynamic(Long dynamicId);

  void addLikeNum(Long id);


}
